package service.product;

import java.util.List;
import java.util.Map;

import persistence.product.ProductDao;

import dao.Product;

public class ProductDaoService implements ProductService {

	private ProductDao dao;

	@Override
	public void deleteProduct(Integer id) {
		dao.deleteProduct(id);
	}

	@Override
	public List<Map<String, Product>> getAllProduct() {
		return dao.getAllProduct();
	}

	@Override
	public Product getProduct(Integer id) {
		return dao.getProduct(id);
	}

	@Override
	public void insertProduct(Product product) {
		dao.insertProduct(product);

	}

	@Override
	public void updateProduct(Product product) {
		dao.updateProduct(product);

	}

}
